package com.aliwo.design.patterns.status.ext3;

/**
 * @author xuyayuan
 * @description TODO
 * @date 2021/9/18 16:14
 */
public class SState extends Status {


    @Override
    public void doSomething(Person person) {
        if (18 == person.getHour()) {
            System.out.println("吃完饭");
        } else {
            person.setStatus(new NoStatus());
            person.doSomeThing();
        }
    }
}
